/**
 * vue插件: 注册全局组件
 * vue2: 参数是Vue构造函数
 * vue3: app根实例
 */
import Skeleton from './Skeleton'
import Slider from './Slider'
import More from './More'

// 1.准备放组件数据
const cps = [Skeleton, Slider, More]

export default {
  install (app) {
    // app.component('Skeleton', Skeleton)
    // app.component('Skeleton', Skeleton)

    cps.forEach(cp => {
      app.component(cp.name, cp)
    })
  }
}
